package com.carrot.newsgallery.utils;


import lombok.Data;

@Data
public class MyDatabaseException extends Exception{
    public enum errorCode{
        NO_DATA_FOUND,
        FAILURE;
    }

    private errorCode status;

    public MyDatabaseException(errorCode code){
        this.status = code;
    }
}
